﻿@model IEnumerable<DBTramite.BussinesEntities.Documento>

@{
    ViewBag.Title = "ExpedienteRecibir";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>ExpedienteRecibir</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>

@using (Html.BeginForm())
{
    <fieldset>
        <legend>Buscar Expediente</legend>
        <b>Numero Expediente:</b>
        <table>
            <tr>
                <td>
                     <div class="editor-field">
                         @Html.DropDownList("Sede", new MultiSelectList(new[] { "Expediente", "Doc. Generado", "Procedencia","Asunto","Expediente Inicial" }))
                     </div>
                   </td>
                <td>
                     <div class="editor-field">
                         @Html.DropDownList("Sede", new MultiSelectList(new[] { "Mostrar Coincidencia", "Procedencia","Asunto" }))
                     </div>
                   </td>
                </tr>
        </table>
        @Html.TextBox("Criterio")
        <input type="submit" name="btnBuscar"  value ="Buscar"/>
    </fieldset>   
 
}

<div class="CSSTableGenerator">

    <div class="datagrid">
        @{ 
    var row = 0;
    var style = ""; 
  }

<table>
    <thead>
    <tr>
        <th>
            Nro. Expediente
        </th>
        <th>
            Documento Generado
        </th>
        <th>
            Expediente Inicial
        </th>
        <th>
            Procedencia
        </th>
        <th></th>
    </tr>
  </thead>

@foreach (var item in Model) {

style = row % 2 == 0 ? "alt" : "";
    
    <tr class="@style">
        <td>
            @Html.DisplayFor(modelItem => item.nroexpediente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.expgenerador)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.codexpinicial)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nombre)
        </td>
        @*<td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>*@
    </tr>
    row++;
}

</table>

        </div>

    </div>
